//
//  TwitterPoster.h
//  HahnWinery
//
//  Created by HaiNguyenThanh on 4/19/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OuathAuthViewController.h"

@protocol TwitterPosterDelegate;

@interface TwitterPoster : NSObject <OuathAuthViewControllerDelegate>
{
	id <TwitterPosterDelegate> loginDelegate;
	OuathAuthViewController *mOuathLogin;
	NSString *username;
}
@property (nonatomic, retain) id <TwitterPosterDelegate> loginDelegate;
@property (nonatomic, retain) NSString *username;
@property (nonatomic, retain) OuathAuthViewController *mOuathLogin;
- (void)login:(id)delegate;
- (void) twit:(NSString*)text withLink:(NSString*)link forapp:(NSString *)twitAppname makeTiny:(BOOL)yesOrno delegate:(id)delegate;
- (NSString*)username;
- (void) logout;
- (id) init;
- (BOOL)isLogedIn;
@end
@protocol TwitterPosterDelegate
- (void) getUserInfoTwitter;
- (void) logOff;
@end

